# $Id: PKGBUILD 58823 2011-11-18 16:45:54Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Xilon <xilonmu@gmail.com>
# Contributor: Edward Toroschin <edward.hades@gmail.com>

pkgname=grc
pkgver=1.4
pkgrel=1
pkgdesc='Yet another colouriser for beautifying your logfiles or output of commands.'
arch=('any')
url='http://kassiopeia.juls.savba.sk/~garabik/software/grc.html'
license=('GPL')
depends=('python2')
backup=('etc/grc.conf')
source=(http://kassiopeia.juls.savba.sk/~garabik/software/$pkgname/${pkgname}_$pkgver.tar.gz
	install.sh.patch)
md5sums=('a59267f88b6d2b7e6a4779bc904c3f75'
         '096bfb843ea779d1cf509f11d4fefffe')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i ../install.sh.patch
  ./install.sh "$pkgdir"
  sed -i 's#/usr/bin/python#/usr/bin/python2#' $pkgdir/usr/bin/grcat $pkgdir/usr/bin/grc
}
